<?php 
	$likeClass = 'comment_like';
	$likeHref = Yii::app()->createAbsoluteUrl("event/insertcommentlike", array('comment_id'=>$comment_id));
	
	foreach($likes as $like){ 
		if($like['user_id'] == Yii::app()->user->id){
			$likeClass = 'comment_dislike';
			$likeHref = Yii::app()->createUrl('event/deletecommentlike', array('comment_id'=>$comment_id, 'comment_like_id'=>$like->id));
			
			break;
		}
	} 
?>

<a href="<?php echo $likeHref; ?>" class="like <?php echo $likeClass; ?>" onclick="return false;">
	<span class="like_heart"></span>
	<em class="like_num"><?php echo CHtml::encode($countLikes); ?></em>
	<em class="like_txt">Мне нравится</em>
</a>
